"""
演示Python中正则表达式re模块的3个基础匹配方法
"""
import re
s = "1python000 itheima itcast python"
#match从头匹配
result = re.match("python",s)
print(result)
# print(result.span())
# print(result.group())
#search(匹配规则, 被匹配字符串)  匹配搜索
result = re.search("python", s)
print(result)

#findall 搜索全部匹配
result = re.findall("python", s)
print(result)
